home *** CD-ROM | disk | FTP | other *** search
- property y, sp
-
- on birth me, mysp
- global AlienX, MaxAliens
- set sp to mysp
- puppetSprite(sp, 1)
- set the stretch of sprite sp to 0
- set alien to sp - 1
- if alien <= MaxAliens then
- set y to alien * 85
- set the locH of sprite sp to AlienX
- else
- set y to (alien - (MaxAliens / 2)) * 70
- set the locH of sprite sp to AlienX + 50
- end if
- set the locV of sprite sp to y
- return me
- end
-
- on animate me
- global alienlist, Alast, Afirst, AlienX, inc, MaxAliens, points, numships
- set alien to sp - 1
- if alien <= MaxAliens then
- set tmp to the castNum of sprite sp
- set tmp to tmp + 1
- if tmp > 112 then
- set tmp to 65
- end if
- set the castNum of sprite sp to tmp
- set the locH of sprite sp to AlienX
- end if
- set the locV of sprite sp to y
- end
-